regex remove non numeric

73

regex remove non numeric -

s = "joe ($3,004.50)";
s = Regex.Replace(s, "[^0-9.]", "");
// 3004.50

Comments

Submit
0 Comments